<?php
namespace catchAdmin\business\model\search;

trait BondedSearch
{
    public function searchJobNumberAttr($query, $value, $data)
    {
        return $query->whereLike('job_number', $value);
    }

    public function searchBusinessTypeAttr($query, $value, $data)
    {
        return $query->where('business_type', $value);
    }
}